package com.zf.yichat.model;

import java.io.Serializable;
import java.util.Date;
import javax.persistence.*;

@Table(name = "user_join_ultragroup_apply")
public class UserJoinUltragroupApply implements Serializable {
    @Id
    private Integer id;

    @Column(name = "user_id")
    private Long userId;

    @Column(name = "ultragroup_id")
    private String ultragroupId;

    /**
     * 0待审核 1审核通过  加入到成员表  2拒绝后仍可申请 3拒绝后不可申请！
     */
    private String status;

    @Column(name = "create_time")
    private Date createTime;

    private static final long serialVersionUID = 1L;

    public UserJoinUltragroupApply(Integer id, Long userId, String ultragroupId, String status, Date createTime) {
        this.id = id;
        this.userId = userId;
        this.ultragroupId = ultragroupId;
        this.status = status;
        this.createTime = createTime;
    }

    public UserJoinUltragroupApply() {
        super();
    }

    /**
     * @return id
     */
    public Integer getId() {
        return id;
    }

    /**
     * @param id
     */
    public void setId(Integer id) {
        this.id = id;
    }

    /**
     * @return user_id
     */
    public Long getUserId() {
        return userId;
    }

    /**
     * @param userId
     */
    public void setUserId(Long userId) {
        this.userId = userId;
    }

    /**
     * @return ultragroup_id
     */
    public String getUltragroupId() {
        return ultragroupId;
    }

    /**
     * @param ultragroupId
     */
    public void setUltragroupId(String ultragroupId) {
        this.ultragroupId = ultragroupId == null ? null : ultragroupId.trim();
    }

    /**
     * 获取0待审核 1审核通过  加入到成员表  2拒绝后仍可申请 3拒绝后不可申请！
     *
     * @return status - 0待审核 1审核通过  加入到成员表  2拒绝后仍可申请 3拒绝后不可申请！
     */
    public String getStatus() {
        return status;
    }

    /**
     * 设置0待审核 1审核通过  加入到成员表  2拒绝后仍可申请 3拒绝后不可申请！
     *
     * @param status 0待审核 1审核通过  加入到成员表  2拒绝后仍可申请 3拒绝后不可申请！
     */
    public void setStatus(String status) {
        this.status = status == null ? null : status.trim();
    }

    /**
     * @return create_time
     */
    public Date getCreateTime() {
        return createTime;
    }

    /**
     * @param createTime
     */
    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }
}